package com.example.forum;

import com.example.forum.dao.UserMapper;
import com.example.forum.model.User;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class ApplicationTets {

    @Resource
    private UserMapper userMapper;
    @Test
    void Test() {
        User user = userMapper.selectByPrimaryKey(1l);
        System.out.println(user);
        System.out.println(user.getUsername());
    }
}
